package exam.ccwtest;

import android.app.*;
import android.os.*;
import android.widget.*;

public class c06_Timer extends Activity {
	int value=0;
	TextView mText;
	
	public void onCreate (Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.c06_timer);
		
		mText = (TextView)findViewById(R.id.text);
		mHandler.sendEmptyMessage(0);
	}
	
	Handler mHandler = new Handler() {
		public void handleMessage (Message msg) {
			value++;
			mText.setText("값 = " + value);
			mHandler.sendEmptyMessageDelayed(0,1000);
		}
	};
}
